<?php
/**
 * Created by PhpStorm.
 * User: Cloud
 * Date: 2018/4/13
 * Time: 12:18
 */
?>


<?php
/**
 * Created by PhpStorm.
 * User: Cloud
 * Date: 2018/4/13
 * Time: 10:04
 */
?>
    <!--[if lt IE 7]>
    <div class="ie6_error">还在用<strong>漏洞百出的IE6浏览器</strong>么？为了您的网络安全，请升级浏览器 <a target="_blank"
                                                                               href="http://browsehappy.com">立即升级</a>
    </div>
    <![endif]-->

    <meta charset="utf-8">
    <title>单额预算-文具1号</title>
    <meta name="description"
          content="文具1号作为上海办公用品供货商公司,专为世界500强企业及SOHO办公族提供网上商城一站式办公耗材批发及采购服务,一站式选购办公日用文具用品,厂家直销,好货又便宜【阳光采购就上文具1号 阳光价格 老板放心 品质保障 员工省力】"/>
    <meta name="keywords" content="办公用品,办公文具,办公文具网站,文具网站,办公用品网,文具采购网,金万年"/>
    <meta name="copyright" content="上海易推信息科技有限公司"/>
    <meta name="renderer" content="webkit">
    <base href="<?php echo base_url(); ?>"/>
    <link rel="shortcut icon" href="favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="public/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/cost-center.css"/>
    <script type="text/javascript" src="public/js/html5shiv-printshiv-3.js"></script>
    <!--[if lte IE 9]>

    <!--common - head -->
<?php $this->load->view('common/header.php'); ?>
    <!--common - head end-->
    <div class="pop pop-adjustment-budget bg-padding-inside pop-new-cost-center" style="width:520px; height: auto">
        <a href="javascript:;" class="close bg-btn_close_n"></a>
        <p class="top-tit">
            <span class="bg-logo_popup"></span>
            <!--<a href="javascript:;" class="close bg-btn_close_n"></a>-->
        </p>
        <div class="cont adjustment-budget-cont">
            <p class="tit" style="margin-bottom:0;">申请调整预算</p>
            <div class="adjustment-budget-intro">
                <p class="adjustment-budget-row">
                    <span class="name">单 品 额 度：</span>
                    <?php if (isset($single)):?>
                        <span class="text">￥<?php echo $single?></span>
                    <?php endif;?>


                    <span class="unit01">每月</span>
                </p>
                <p class="adjustment-budget-row">
                    <span class="name">期望调整至：</span>
                    <span class="text">
                  <input type="text" class="adjustment-budget-input" name="expect_single_quote" placeholder="请输入金额">
                  <em class="unit02">元</em>
                </span>
<!--                    <select name="unit" id="adjustment-budget-select" class="adjustment-budget-select">-->
<!--                        <option value="月" selected>月</option>-->
<!--                        <option value="天">天</option>-->
<!--                    </select>-->
                </p>
                <p class="adjustment-budget-row">
                    <span class="name">其他：</span>
                    <span class="text text-textarea">
                  <textarea name="other" id="adjustment-budget-textarea" class="adjustment-budget-textarea" cols="30" rows="10" placeholder="请输入内容"></textarea>
                </span>
                </p>
                <p class="p-notice">申请将发送至您上级账户进行确认</p>
            </div>
            <button class="adjustment-budget-submit">确 认 申 请</button>
        </div>
    </div>
<?php $this->load->view('common/bottom.php'); ?>
    <!--申请调整预算-->
    <script type="text/javascript" src="public/js/jquery.min.js"></script>
    <script type="text/javascript" src="public/js/index.js"></script>
    <script type="text/javascript" src="public/js/owl.carousel.min.js"></script>
    <script src="public/js/layui/layui.js"></script>
<script type="text/javascript" >
$('.adjustment-budget-submit').click(function () {
    var single=$('.adjustment-budget-input').val();
    var unit=$('.adjustment-budget-select').val();
    var other=$('.adjustment-budget-textarea').val();

    $.ajax({
        type: "POST",
        url: "index/index_budget_singel",
        data: {'single':single,'unit':unit,'other':other},
        dataType: "json",
        success: function(data){
            if(data.code==0){
                location.href = 'index/index';
                layer.msg(data.msg);
            }else{
                layer.msg(data.msg);
            }
        }
    });

})
</script>